/*****************************************************************************/
/**
 *  @file   MetaModuleParticleSend.h
 *  @author Allan Lorant, Naohisa Sakamoto
 */
/*----------------------------------------------------------------------------
 *
 *  Copyright (c) Visualization Laboratory, Kyoto University.
 *  All rights reserved.
 *  See http://www.viz.media.kyoto-u.ac.jp/kvs/copyright/ for details.
 *
 *  $Id$
 */
/*****************************************************************************/
#ifndef META_MODULE_PARTICLE_SEND_H_INCLUDE
#define META_MODULE_PARTICLE_SEND_H_INCLUDE

#include <flowvr/app/components/metamoduleflowvr-run-ssh-singleton.comp.h>
#include "ModuleParticleSend.h"


/*===========================================================================*/
/**
 *  @brief  Meta module for ParticleSend.
 */
/*===========================================================================*/
class MetaModuleParticleSend : public flowvr::app::MetaModuleFlowvrRunSSHSingleton<ModuleParticleSend>
{
    typedef flowvr::app::MetaModuleFlowvrRunSSHSingleton<ModuleParticleSend> SuperClass;

public:

    MetaModuleParticleSend( const std::string& id ):
        SuperClass( id, flowvr::app::CmdLine("ParticleSend") )
    {
        SuperClass::setInfo("Metamodule launching ParticleSend module");
        SuperClass::getRun()->openDisplay(":0");
    }

    flowvr::app::Component* create() const
    {
        return new MetaModuleParticleSend( SuperClass::getId() );
    }
};

#endif // META_MODULE_PARTICLE_SEND_H_INCLUDE
